package com.yitong.equipment.ui.adapter


import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter

import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.yitong.equipment.R


class PopClassifyAdapter(data: MutableList<String>? = null, choiceIndex: Int) : BaseQuickAdapter<String, BaseViewHolder>(R.layout.pop_item, data) {
    var mChoiceIndex = choiceIndex
    override fun convert(holder: BaseViewHolder, item: String) {
        holder.setText(R.id.tv_content,item)
        var contentView = holder.getView<TextView>(R.id.tv_content)
        contentView.isSelected = holder.bindingAdapterPosition==mChoiceIndex
    }
}